﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MMK.PaketTracker.Server.Definitions
{
    [Serializable]
    public class Adresse : BaseUniqueIdentifier
    {
        public Adresse(Guid id) : base(id) { }

        public Adresse() { }

        /// <summary>
        /// Vorname
        /// </summary>
        public string Vorname { get; set; }

        /// <summary>
        /// Name
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Straße
        /// </summary>
        public string Strasse { get; set; }

        /// <summary>
        /// Hausnummer
        /// </summary>
        public string Hausnummer { get; set; }

        /// <summary>
        /// PLZ
        /// </summary>
        public string PLZ { get; set; }

        /// <summary>
        /// Ort
        /// </summary>
        public string Ort { get; set; }

		public override string ToString()
		{
			string returnValue = String.Format("{0}|{1}|{2}|{3}|{4}|{5}|{6}",
				this.Guid, this.Vorname, this.Name, this.Strasse, this.Hausnummer, this.PLZ, this.Ort);

			return returnValue;
		}
    }
}
